import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 场站列表
export function listPointHistory(params){

  return request({
    url: '/system/point-history/list',
    method: 'post',
    data: params
  })
}

// 查询详细
export function getPointHistory(id) {
  return request({
    url: '/system/point-history/detail?id=' + id,
    method: 'get'
  })
}

// 新增标准点表
export function addPointHistory(data) {
  return request({
    url: '/system/point-history/add',
    method: 'post',
    data: data
  })
}

// 修改标准点表
export function updatePointHistory(data) {
  return request({
    url: '/system/point-history/update',
    method: 'post',
    data: data
  })
}

// 删除标准点表
export function delPointHistory(id) {
  return request({
    url: '/system/point-history/del?id=' + id,
    method: 'get'
  })
}


// 删除标准点表
export function batchDelPointHistory(ids) {
  const params = {
    'ids' : ids
  }
  return request({
    url: '/system/point-history/batchDel',
    method: 'post',
    data : params
  })
}
